package org.dromara.finance.domain.bo;

import org.dromara.finance.domain.Staff;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 员工业务对象 staff
 *
 * @author xxy
 * @date 2025-08-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Staff.class, reverseConvertGenerate = false)
public class StaffBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 员工编码
     */
    @NotBlank(message = "员工编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 员工名称
     */
    @NotBlank(message = "员工名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 所属部门
     */
    @NotNull(message = "所属部门不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 性别
     */
    private Long sex;

    /**
     * 证件类型（如：身份证、护照）
     */
    private String idType;

    /**
     * 证件号码
     */
    private String idNumber;

    /**
     * 家庭地址
     */
    private String address;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 备注
     */
    private String remark;

    /**
     * 启用状态
     */
    @NotNull(message = "启用状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long staffStatus;


}
